<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <include file='__VIEW__/Common/header' />
	</head>
	<body>
		<form action="{|U:'setOrder'}" method="post">
			<table class="table table-hover">
				<tr class="active">
				  <th width="30">cid</th>
				  <th>品牌名称</th>
				  <th>logo</th>
				  <th>排序</th>
				  <th>是否热门</th>
				  <th width="210">操作</th>
				</tr>
				<if value="empty($bData)">
					<tr><td colspan="6">还没有品牌</td></tr>
				<else />
					<foreach from="$bData" key="$k" value="$v">
						<tr>
							<td>{$v.bid}</td>
							<td>{$v.bname}</td>
							<td><img src="__ROOT__/{$v.blogo}" style="border: solid 1px #CCCCCC;max-width: 100px;max-height: 40px;" /></td>
							<td><input type="text" name="bsort[]" value="{$v.bsort}" class="form-control" /><input type="hidden" name="bid[]" value="{$v.bid}" /></td>
							<td><if value="$v['ishot']==1">是</if></td>
							<td>
								<a href="{|U:'edit',array('bid'=>$v['bid'])}" class="btn btn-sm btn-warning">编辑</a>
								<a href="javascript:;" class="btn btn-sm btn-danger" onclick="del('{|U:'del',array('bid'=>$v['bid'])}')">删除</a>
							</td>
						</tr>
					</foreach>
				</if>
			</table>
			<if value="!empty($bData)">
				<input type="submit" value="排序" class="btn btn-sm btn-primary" />
			</if>
		</form>
		<div id="page">{$pageData}</div>
	</body>
</html>
